﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DeviceManager.BusinessLogicLayer;
using DeviceManager.DataAccessLayer;

namespace DeviceManagementIT.DevicesManager
{
    public partial class frmNuocSX : DevExpress.XtraEditors.XtraForm
    {
        CountryBllOperation m_CountryBllOperation;
        public frmNuocSX()
        {
            InitializeComponent();
        }

        private void btnInsertNuoc_Click(object sender, EventArgs e)
        {
            m_CountryBllOperation = new CountryBllOperation();
            NUOC m_NUOC = new NUOC();
            m_NUOC.TenNuoc = txtUnitName.Text;
            m_CountryBllOperation.SaveRecordDevice(m_NUOC);
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}